{extend name="../layout/base" /}

{block name="tool_bar"}
<div class="layui-row">
    <div class="layui-col-md3 layui-col-md-offset9 tr">
        <a href="{:url('add')}" class="layui-btn layui-btn-sm auth-add">开通应用</a>
    </div>
</div>
{/block}

{block name="body"}
<div >
    <table class="layui-table" lay-even="" lay-skin="line">
        <colgroup>
            <col>
            <col>
            <col>
        </colgroup>
        <thead>
        <tr>
            <th>应用名称</th>
            <th>会员账号</th>
            <th>会员手机号</th>
            <th>首次开通时间</th>
            <th>到期时间</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        {volist name="data_list" id="vo"}
        <tr>
            <td>{$vo.name}</td>
            <td>{$vo.username}</td>
            <td>{$vo.mobile}</td>
            <td>{:date('Y-m-d H:s:i',$vo.create_time)}</td>
            <td>{:date('Y-m-d H:s:i',$vo.deadline)}</td>
            <td>
                <a class="bt-a" href="{:url('edit',['id'=>$vo.id])}">编辑</a>
            </td>
        </tr>
        {/volist}
        </tbody>
    </table>
    <div id="page">
        {$page|raw}
    </div>
</div>
{/block}

{block name="js"}

{/block}